home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-10-27 | 2.0 KB | 76 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="6"
- "COUNT"="3"
- "UIPATH"="Program Options\Built in Windows Apps\Windows Scripting Host"
- "NAME"="Windows Scripting Host Options"
- "VERSION"="2.03"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Enable Windows Scripting Host"
- "TEXT 2"="Display copyright message when running a script"
- "TEXT 3"="Allow scripts to be run from remote machines (NT/2K/XP)"
- "DESCRIPTION 1"="Some options for Windows Scripting Host."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="Thanks to CptSiskoX for the settings and the idea."
-
-
- ' if this path exists in the registry, the plug-in will be enabled. if it does
- ' not exist, the plug-in will be disable set to ="" to ignore this check and alway
- ' enable the plug-in, regardless if the path exists or not
- sCheckPath="HKLM\Software\Microsoft\Windows Script Host\"
-
- sV1_Path="HKLM\Software\Microsoft\Windows Script Host\Settings\Enable" 'DW
- sV2_Path="HKLM\Software\Microsoft\Windows Script Host\Settings\DisplayLogo" 'STRING!
- sV3_Path="HKLM\Software\Microsoft\Windows Script Host\Settings\Remote" 'DW
-
- Sub Plugin_Initialize
- s=RegReadValue(sV1_Path)
- if s="1" or IsEmpty(s)=true then
- Call SetUIElement(1,true)
- end if
-
- s=RegReadValue(sV2_Path)
- if s="1" or IsEmpty(s)=true then
- Call SetUIElement(2,true)
- end if
-
- s=RegReadValue(sV3_Path)
- if s="1" then
- Call SetUIElement(3,true)
- end if
-
- end Sub
-
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- s=GetUIElement(1)
- if s=true then
- Call RegWriteValue(sV1_Path,"1",2)
- else
- Call RegWriteValue(sV1_Path,"0",2)
- end if
-
- s=GetUIElement(2)
- if s=true then
- Call RegWriteValue(sV2_Path,"1",1)
- else
- Call RegWriteValue(sV2_Path,"0",1)
- end if
-
- s=GetUIElement(3)
- if s=true then
- Call RegWriteValue(sV3_Path,"1",2)
- else
- Call RegWriteValue(sV3_Path,"0",2)
- end if
-
- end Sub
-
-
- Sub Plugin_Terminate
- End Sub
-
-
-
-